<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
    <meta charset="UTF-8">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
<title>货源单录入</title>
<link rel="stylesheet" href="./../../layui/2.3.0/css/layui.css?t=1527693307626"  media="all">
<style>
.layout1_foot{
	text-align:center;
	color:#fff;
	width: 100%;
    height: 46px;
    background: #242527;
}
.icon-image{
width:100px;
height:38px;
}
</style>
 </head>
 
<body>

<div style="padding: 20px; background-color: #F2F2F2;">

<div class="layui-row layui-col-space15" style="margin-top:60px;height:500px;">
  
    <div class="layui-col-md6 layui-col-md-offset3">
      <div class="layui-card">
        <div class="layui-card-header" style="height:68px;line-height:68px;margin-left:46px;">
        <span style="font-size:18px;">登录</span>
        <div style="float:right;">没有账号?<a href="" style="color:#2FA0ED;border-bottom:1px solid #2FA0ED">请注册</a></div>
        </div>
        <div class="layui-card-body">
         <form class="layui-form" id="loginForm" action="" method="post">
		  <div class="layui-form-item">
		    <div class="layui-input-block" style="width:425px;">
		      <input type="text" style="" name="username" lay-verify="required" autocomplete="off" placeholder="请输入手机号/用户名" class="layui-input">
		    </div>
		  </div>
		   <div class="layui-form-item">
		  	 <div class="layui-inline">
		  	 <label class="layui-form-label"></label>
		      <div class="layui-input-block" style="width:425px;">
		         <input type="password" name="password" lay-verify="required"placeholder="请输入密码" autocomplete="off" class="layui-input">
		      </div>
		    </div>
		    
		  </div>
		  <div class="layui-form-item">
		   <div class="layui-inline">
		  	 <label class="layui-form-label"></label>
		      <div class="layui-input-inline" style="width:300px;">
		          <input type="text" name="authCode" lay-verify="required" placeholder="请输入图形验证码" autocomplete="off" class="layui-input">
		      </div>
		    </div>
		    <div class="layui-inline">
		      <div class="layui-input-inline" >
		        <img src="./../../login/vcode" class="layui-btn layui-btn-primary" onclick="changeImage(this)"style="width:100px;height:38px;"/>
		      </div>
		    </div>
		  </div>
		  <div class="layui-form-item">
		  <div class="layui-input-block" style="width:500px;">
		   <button id="loginBtn" role="button" class="layui-btn  layui-btn-normal layui-btn-fluid">登录</button>
		   </div>
		   </div>
		 </form>
        </div>
      </div>
    </div>
  </div>
  </div> 
<div class="layout1_foot" style="line-height:45px;">
<p>四川锦云运输有限公司<label style="margin-left:10px;">粤ICP备14091972号</label></p>
</div>

<script src="./../../layui/2.3.0/layui.all.js" charset="utf-8"></script>
<script>
function changeImage(e){
	e.src='../../reg/vcode?_='+new Date().getTime()
}
layui.config({
    base: './' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index'], function(){
    var $ = layui.$
    ,admin = layui.admin
    ,element = layui.element
    ,layer = layui.layer;

    element.render();
    $("#loginBtn").click(function(){
		var data=$("#loginForm").serialize();
		console.log(data);
		$.post("./login/auth",data,function(rs){
			if(rs["success"]){
				window.location.href="";
			}else{
				
			}
			
		});
	})
  });
</script>
</body>
</html>
